<template>
	<view>
		<rich-text :nodes="content"></rich-text>
	</view>

</template>
<script>
	import RichText from '@/utils/richtext.js'
	export default {
		data() {
			return {
				content: '',
				id: ''
			}
		},
		onLoad(option) {
			this.id = option.id
			this.getDetail()
		},
		methods: {
			getDetail() {
				let _this = this
				_this.http.apiResquest({
					url: 'api/index/other_content?id=' + _this.id,
					method: 'GET'
				}).then(res=>{
					_this.content = RichText.formatRichText(res.content)
					uni.setNavigationBarTitle({
					　　title:res.title
					})
				})
			},
		}
	}
</script>

<style>



</style>
